﻿<phone:PhoneApplicationPage x:Class="IWantIn.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    SupportedOrientations="Portrait" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="728" d:DesignWidth="480">
    
    <!-- The application bar with five menu items -->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar BackgroundColor="#9CB366" ForegroundColor="White">
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="cow" Click="AnimalMenuItem_Click" />
                <shell:ApplicationBarMenuItem Text="sheep" Click="AnimalMenuItem_Click" />
                <shell:ApplicationBarMenuItem Text="cat" Click="AnimalMenuItem_Click" />
                <shell:ApplicationBarMenuItem Text="instructions" Click="InstructionsMenuItem_Click" />
                <shell:ApplicationBarMenuItem Text="calibrate" Click="CalibrateMenuItem_Click" />
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
    
    <Canvas>
        <Canvas.Background>
            <ImageBrush ImageSource="Images/background.png" />
        </Canvas.Background>
        
        <!-- A cow, sheep, or a cat :) -->
        <Image x:Name="AnimalImage" RenderTransformOrigin=".5,.5"
               Canvas.Left="32" Canvas.Top="50" Width="434" Height="507">
            <Image.RenderTransform>
                <CompositeTransform  x:Name="AnimalTransform" />
            </Image.RenderTransform>
        </Image>
    </Canvas>

</phone:PhoneApplicationPage>